<br/>
<div style="clear:both"></div>
<?php if ($pager->haveToPaginate()): ?>
        <!-- Pagination -->
    <div class="pagination" style="clear: both;">
        <ul>
            <li class="first <?php echo $pager->getPage() == 1 ? 'disabled' : ''?>">
                <a href="<?php echo url_for('show_adventure_page', array('id' => $ktd_adventure->getId(),
                                                                'title_slug' => $ktd_adventure->getTitleSlug(),
                                                                'page' => 1))?>"><<</a>
            </li>
            <?php if($pager->getPage() > 1): ?>
            <li class="prev">
                <a href="<?php echo url_for('show_adventure_page', array('id' => $ktd_adventure->getId(),
                                                                'title_slug' => $ktd_adventure->getTitleSlug(),
                                                                'page' => $pager->getPage() -1))?>"><</a>
            </li>
            <?php endif; ?>
            <?php foreach ($pager->getLinks() as $page): ?>
            <li class="<?php echo $page == $pager->getPage() ? 'disabled' : ''?>">
                <a href="<?php echo url_for('show_adventure_page', array('id' => $ktd_adventure->getId(),
                                                                'title_slug' => $ktd_adventure->getTitleSlug(),
                                                                'page' => $page)) ?>"><?php echo $page ?></a>
            </li>
            <?php endforeach; ?>
                        <?php if($pager->getPage() < count($pager->getLinks())): ?>
            <li class="next">
                <a href="<?php echo url_for('show_adventure_page', array('id' => $ktd_adventure->getId(),
                                                                'title_slug' => $ktd_adventure->getTitleSlug(),
                                                                'page' => $pager->getPage() +1))?>">></a>
            </li>
            <?php endif; ?>
            <li class="last <?php echo count($pager->getLinks()) == $pager->getPage() ? 'disabled': '' ?>">
                <a href="<?php echo url_for('show_adventure_page', array('id' => $ktd_adventure->getId(),
                                                                'title_slug' => $ktd_adventure->getTitleSlug(),
                                                                    'page' => $pager->getLastPage()))?>">>></a>
            </li>
        </ul>
    </div>
        <!-- Fin de Pagination -->
<?php endif ?>
<div style="clear:both"></div>
<br/>

